<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
    <head> 
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <%@ include file="/WEB-INF/views/include/head.jsp"%>
    <link rel="stylesheet" href="${ctxStatic}/css/common_erp.css">
    <link rel="stylesheet" href="${ctxStatic}/css/list.css">
    <%-- <script src="${ctxStatic}/jquery/jquery-1.9.1.min.js"></script> --%>    
    <script src="${ctxStatic}/js/jquery-1.9.1.min.js"></script>
    <script src="${ctxStatic}/js/DateTimePicker.js"></script>
    <script src="${ctxStatic}/js/layer.js"></script>
    <script src="${ctxStatic}/js/style.js"></script>
    <script src="${ctxStatic}/dateCalendar/WdatePicker.js"></script>
    <script>
    </script>
</head>
<body>
<div class="layerHeader clearfix" style="width: 800px;">
	<p class="headerTitle"><spring:message code="customization_cost_costDetail" /></p>
    <div class="headerButton clearfix">
        <button type="button" onclick="closeWin()"><spring:message code="btn_cancle" /></button>
    </div>
</div>
        <div class="tableArea" style="margin-top: 5px;">
            <div class="" style="overflow:auto;height: 470px;width: 782px;padding-top: 36px;">
                <table cellpadding="0" class="tableHead" >
                    <thead>
                    <tr>
                        <th><p class="width-60px"><spring:message code="orderMateriel_list_no" /></p></th>
                        <th><p class="width-350px"><spring:message code="customization_cost_costName" /></p></th>
                        <th><p class="width-350px"><spring:message code="customization_cost_cost" /></p></th>
                    </tr>
                    </thead>
                </table>
                <table cellpadding="0" class="tableBody">
					<tbody>
					
					<c:forEach items="${styleCostList}" var="styleCost" varStatus="status">
						<tr>
							<td><p class="width-60px">${status.count }</p></td>
	                        <td><p class="width-350px">
	                        	${fns:getDesignoptionName(fn:split(styleCost.costItem1,'-')[0]) }
	                        	<c:if test="${fns:getDesignoptionName(fn:split(styleCost.costItem1,'-')[0])!='' && fn:split(styleCost.costItem1,'-')[0] != '4SMT'}">
	                        	 : 
	                        	</c:if>
	                        		${styleCost.costItemCN }<c:if test="${styleCost.remark!=null&&styleCost.remark!='' }">(<spring:message code="${styleCost.remark }" /> & ${fn:split(styleCost.costItem1,'-')[1] })</c:if>${fns:getDictName(styleCost.costItem1) }
	                        	<c:if test="${fns:getDesignoptionName(fn:split(styleCost.costItem1,'-')[1]) == '' && fn:split(styleCost.costItem1,'-')[0] != 'MTM_COST' && fn:split(styleCost.costItem1,'-')[0] != 'SMT_div' && fn:split(styleCost.costItem1,'-')[0] != 'SMA' && fn:split(styleCost.costItem1,'-')[0] != '4SMT' && fn:indexOf(styleCost.costItem1,'弹力线') == -1}">
	                        		${fn:substring(styleCost.costItem1,fn:indexOf(styleCost.costItem1, "-")+1,-1)}
	                        	</c:if>
	                        	<c:if test="${styleCost.costItem1 == 'SMA-SMA'}">
	                        		${fns:getDesignoptionName('4H') }
	                        	</c:if>
	                        	<c:if test="${styleCost.costItem1 == 'SMT_div-SMT_MART'}">
	                        		${fns:getDesignoptionName('4SMT') }
	                        	</c:if>
	                        	</p></td>
	                        <td><p class="width-350px"><fmt:formatNumber value="${styleCost.costValue }" pattern="#,##0.00#"/></p></td>
						</tr>
					</c:forEach>
					</tbody>
                </table>
            </div>
    </div>
</body>
</html>